package com.zking.ssm.sys.service;

import com.zking.ssm.sys.model.User;
import com.zking.ssm.util.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IUserService {

    int deleteByPrimaryKey(Long userId);

    int insert(User record);

    int insertSelective(User record);

    @Transactional(readOnly = true)
    User selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Transactional(readOnly = true)
    List<User> list(User user, PageBean pageBean);

    @Transactional(readOnly = true)
    User Login(User user);

}
